<?php

/**
 * Yii view index
 *
 * @author <KTD SOFT>
 * @since Jan 10, 2013 - 2:05:24 AM
 */
$this->widget('DataTable', array(
    'model'   => $this->model,
    'title'   => $this->pageTitle,
    'columns' => array(
        'coupon_code',
        array(
            'name'  => Yii::t('coupon', 'Value'),
            'value' => '$data->formatCoupon()',
        ),
        array(
            'name'  => Yii::t('coupon', 'Start Time'),
            'value' => '$data->formatDate($data->start_time)',
        ),
        array(
            'name'  => Yii::t('coupon', 'End Time'),
            'value' => '$data->formatDate($data->end_time)',
        ),
        array(
            'name'  => Yii::t('datatable', 'Create By'),
            'value' => '$data->created->admin->username',
        ),
    ),
));
